for i in range(1, 9, 2):
    print(("*" * i).center(9))
for j in range(5, 0, -2):
    print(("*" * j).center(9))